﻿namespace HamcoWcs.Models.Common.Enums
{
    /// <summary>Mes消息状态</summary>
    public enum EnumMesMsgStatus
    {
        /// <summary>Wcs等待发送</summary>
        WcsWaitSend = 1,
        /// <summary>Wcs等待Reply</summary>
        WcsWaitRecv,
        /// <summary>Wcs重发</summary>
        WcsReSend,
        /// <summary>Wcs接收Reply成功</summary>
        WcsReceived,
        /// <summary>Wcs接收Reply成功</summary>
        WcsRecvExcute,


        /// <summary>Mes发起请求</summary>
        MesRequest = 11,
        /// <summary>Mes等待Wcs处理</summary>
        MesWait,
        /// <summary>处理Mes请求中</summary>
        //WcsExcuting,
        /// <summary>处理Mes请求已完成</summary>
        WcsExcuted,

        /// <summary>已完成</summary>
        Completed = 21,
        /// <summary>手动关闭</summary>
        Closed,
        /// <summary>发生异常</summary>
        Error,
    }

    /// <summary>Mes消息发送方</summary>
    public enum EnumMesMsgSender
    {
        WCS = 1,
        WMS = 2,
        MES
    }

    /// <summary>消息类型</summary>
    public enum EnumMesRequestType
    {
        /// <summary>上报信息</summary>
        Report = 1,
        /// <summary>请求</summary>
        Request = 2,
    }

    /// <summary>系统初始化时各阶段状态</summary>
    public enum EnumMesInitState
    {
        /// <summary>启动时状态</summary>
        None,
        /// <summary>连接中状态</summary>
        Connecting,
        /// <summary>报告设备信息</summary>
        Report,
        /// <summary>盘点货架信息和托盘信息</summary>
        Inventory,
        /// <summary>
        /// 运行完成
        /// </summary>
        Finished
    }

    public enum EnumMesRunState
    {
        /// <summary>在线模式</summary>
        OnLine,
        /// <summary>离线模式</summary>
        OffLine
    }
}
